package com.springboot_shopping.Mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.springboot_shopping.entity.User;
import com.springboot_shopping.entity.UserAddress;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    // UserMapper.java
    List<UserAddress> findAddressesByUserId(@Param("userId") Integer userId);
}